package com.study.talk.module.netty.message.response;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 *  注册消息的响应
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterResponse extends TalkMessage {

    private Boolean success;

    private String reason;

    private Integer userId;

    private String username;

    private String token;

    @Override
    public byte getType() {
        return MessageType.REGISTER_RESPONSE;
    }
}
